load("//bzl:cpp_unittest.bzl", "cpp_unittest")

cpp_unittest(
    name = "constexpr_test",
    srcs = ["ConstexprTest.cpp"],
    deps = [
        "//folly/portability:constexpr",
        "//folly/portability:gtest",
    ],
)

cpp_unittest(
    name = "fcntl_test",
    srcs = ["FcntlTest.cpp"],
    deps = [
        "//folly/portability:fcntl",
        "//folly/portability:unistd",
    ],
)

cpp_unittest(
    name = "filesystem_test",
    srcs = ["FilesystemTest.cpp"],
    deps = [
        "//folly/portability:filesystem",
        "//folly/portability:gmock",
        "//folly/portability:gtest",
    ],
)

cpp_unittest(
    name = "libgen_test",
    srcs = ["LibgenTest.cpp"],
    deps = [
        "//folly/portability:gtest",
        "//folly/portability:libgen",
    ],
)

cpp_unittest(
    name = "openssl_portability_test",
    srcs = ["OpenSSLPortabilityTest.cpp"],
    deps = [
        "//folly/portability:gtest",
        "//folly/ssl:openssl_ptr_types",
    ],
)

cpp_unittest(
    name = "pthread_test",
    srcs = ["PThreadTest.cpp"],
    deps = [
        "//folly/portability:gtest",
        "//folly/portability:pthread",
    ],
)

cpp_unittest(
    name = "time_test",
    srcs = ["TimeTest.cpp"],
    deps = [
        "//folly/portability:gtest",
        "//folly/portability:time",
        "//folly/test:test_utils",
    ],
)

cpp_unittest(
    name = "unistd_test",
    srcs = ["UnistdTest.cpp"],
    deps = [
        "//folly/portability:unistd",
    ],
)
